<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ClassroomModels extends Model
{
    // 设置表名
    protected $table = 'classroom';
    // 设置主键
    protected $primaryKey = 'id';
    // 设置是否自动维护时间戳
    public $timestamps = false;
    // 设置不需要返回得字段
    protected $hidden = ['create_at', 'update_at'];
    //
    protected $fillable = ['name', 'number'];
}
